package com.neulogistics.core.substation.api.application.query;

import com.neulogistics.core.substation.domain.model.valueobject.Address;
import com.neulogistics.core.substation.domain.model.valueobject.CourierInfo;
import com.neulogistics.core.substation.domain.model.valueobject.CustomInfo;
import com.neulogistics.core.substation.domain.model.valueobject.OrderInfo;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.Date;

@Data
public class TaskOrderQuery implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 当前页号
     */
    @Positive(message = "当前页数非法！")
    public long pageNum = 1;

    /**
     * 页面大小
     */
    @Positive
    @Max(value = 20, message = "请求数据过多！")
    public long pageSize = 10;


    /**
     * 任务单id
     */
    public Long taskId;

    /**
     * 任务类型：1:送货收款；2:退货；3:换货
     */
    public Integer taskType;

    /**
     * 任务状态：0:待货；1:待分配；2:待领货；3:待配送；4:已完成
     */
    public int[] taskStatus;

    /**
     * 所属分站id
     */
    public Integer substationId;

    /**
     * 配送员{userId，name}
     */
    public Integer courierId;
}
